package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.Event;
import com.bonuo.saas.mapper.EventMapper;
import com.bonuo.saas.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EventServiceImpl implements EventService {

    @Autowired
    private EventMapper eventMapper;
    @Override
    public List<Event> selectEventList(Event event) {
        return eventMapper.selectEventList(event);
    }

    @Override
    public int insertEvent(Event event) {
        return eventMapper.insertEvent(event);
    }

    @Override
    public int updateEvent(Event event) {
        return eventMapper.updateEvent(event);
    }

    @Override
    public int deleteEventById(Integer id) {
        return eventMapper.deleteEventById(id);
    }

}
